<?php
	//
	//This php will handle the 
	// UserFetch.java 
	// - fetchUserById function
	//
	
	//Connect to database
	include '../../dbc.php';
	$user = $_POST['user'];
	$meal = $_POST['meal'];
	$comment = $_POST['comment'];
	$create_date = date("Y-m-d H:i:s");
	$is_blocked = 0;
	
	//Check is activated
    $query01 = "INSERT INTO meal_comment (user,meal,comment,create_date,is_blocked) VALUES ('$user','$meal','$comment','$create_date','$is_blocked')";
	if(mysql_query($query01)){
		$response["STATUS"] = "1";
		echo json_encode($response);
	}else{
		$response["STATUS"] = "0";
		echo json_encode($response);
	}
?>